﻿using RepositoryAndEf.Domain;
using System.Linq;
using RepositoryAndEf.Core.Data;
using RepositoryAndEf.Core.Common;


namespace RepositoryAndEf.Service
{
    public class UserService : IUserService
    {
        protected virtual Domain.UserService DomainuUserService
        {
            get
            {
                return EngineContext.Current.Resolve<Domain.UserService>();
            }
        }

        public User Register(string email, string name, string password)
        {
            var user = DomainuUserService.Register(email, name, password);
            return user;
        }
    }
}
